.ng-toast-container {
  position: fixed;
  z-index: 1100;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;

  &--top-right {
    top: 24px;
    right: 24px;
    align-items: flex-end;
  }

  &--top-left {
    top: 24px;
    left: 24px;
    align-items: flex-start;
  }

  &--bottom-right {
    bottom: 24px;
    right: 24px;
    align-items: flex-end;
  }

  &--bottom-left {
    bottom: 24px;
    left: 24px;
    align-items: flex-start;
  }

  &--top-center {
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
  }

  &--bottom-center {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
  }
}

.ng-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  padding: 12px 16px;
  border-left: 4px solid transparent;
  width: 100%;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  animation: ng-toast-slide-in 0.3s ease forwards;
  color: #1f2937;

  &__icon {
    font-size: 18px;
    color: inherit;
  }

  &__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  &__title {
    font-weight: 600;
    font-size: 14px;
  }

  &__message {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.4;
  }

  &__close {
    border: none;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    transition: opacity 0.2s;

    &:hover {
      opacity: 1;
    }
  }

  &--success {
    border-left-color: #22c55e;
    color: #166534;

    .ng-toast__message {
      color: #166534;
    }
  }

  &--info {
    border-left-color: #3b82f6;
    color: #1d4ed8;

    .ng-toast__message {
      color: #1d4ed8;
    }
  }

  &--warning {
    border-left-color: #f97316;
    color: #9a3412;

    .ng-toast__message {
      color: #9a3412;
    }
  }

  &--danger {
    border-left-color: #ef4444;
    color: #991b1b;

    .ng-toast__message {
      color: #991b1b;
    }
  }
}

@keyframes ng-toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ng-toast.toast-progress {
  border-left-color: #6366f1;
}

.ng-toast.toast-progress::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #6366f1 0%, #22d3ee 100%);
}
